package dev.common.utils;

import java.util.Random;

public class CodeGeneratorUtil {

	private static final String ALLCHAR="0123456789QWERTYUIOPLKJHGFDSAZXCVBNMqwertyuioplkjhgfdsazxcvbnm";
	
	public static String getVerifyCode() {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < 4; i++) {
			Random random = new Random();
			sb.append(ALLCHAR.charAt(random.nextInt(ALLCHAR.length())));
		}
		return sb.toString();
	}
}
